﻿@inherits BaseComponent

<KLayout>
    <div class="kui-app">
        @if (!IsHome)
        {
            <div class="kui-app-nav">
                @if (!string.IsNullOrWhiteSpace(Context.Current?.BackUrl))
                {
                    <span class="back" @onclick="e=>Context.Back()">
                        <Icon Type="left" Theme="IconThemeType.Outline" />
                        <span>返回</span>
                    </span>
                }
                @Context.Current?.Name
            </div>
        }
        <div class="@PageClass">
            @ChildContent
        </div>
        @if (IsTab)
        {
            <AppTab Items="Config.AppMenus" />
        }
    </div>
</KLayout>